lcDrwAddTextStyle Home

Adds a new text style into a drawing.

 HANDLE lcDrwAddTextStyle (
   HANDLE hDrw,
   LPCWSTR szName,
   LPCWSTR szFontName,
   BOOL bWinFont
 );

Parameters
hDrw
  Handle to a drawing object.
szName
  Text style name. Must be different from exist text styles.
szFontName
  Font name.
bWinFont
  TRUE - szFontName is Windows TTF font, FALSE - LCF font.

Return Value

  Handle to a new text style.
If the function fails, the return value is NULL.

See Also

  Code sample,   Text